package com.hopu.aop.proxy.computer;

public class ComputerShop implements ComputerSales{

    private ComputerSales factory;

    public ComputerShop(ComputerSales factory){
        this.factory = factory;
    }

    @Override
    public void sellComputer(String brand) {
        //增强
        System.out.println(brand+"很牛逼！！黑科技一大堆~~~");
        //调用工厂的方法
        this.factory.sellComputer(brand);
        //增强
        System.out.println("3年保修包退！！！");
    }
}
